package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @description :
 * @Author QiHainan
 * @Create 2025/5/21 16:32
 * @Version 1.0
 */
@Data
public class LoginForm implements Serializable {
    /**
     *
     */
    @NotBlank(message = "请输入用户名")
    @Size(min = 8,message = "用户名长度最小为8位")
    private String userName;

    /**
     *
     */
    @NotBlank(message = "请输入密码")
    @Pattern(regexp = "^[A-Za-z0-9]{6,}$",message = "密码长度最小为6位，且必须包含字母和数字")
    private String userPass;
}
